package lab02.test03;

public class Student {
    //1、属性
    String no;
    String name;
    private int computer;
    private int math;
    private int english;

    //2、行为（方法、函数）
    public int Sum(){
        return computer+math+english;
    };
    public float Aver(){
        return (computer+math+english)/3;
    }
    public int Max(){
        int max;
        max = (english>math?english:math);
        max=(max>computer?max:computer);
        return max;
    }
    public int Min(){
        int min;
        min = (english<math?english:math);
        min = (min<computer?min:computer);
        return min;
    }

    //3、构造函数
    Student(){}
    Student(int computer,int math,int english){
        this.computer=computer;
        this.math=math;
        this.english=english;
    }

        public int getComputer() {
            return computer;
         }

        public void setComputer(int computer) {
            this.computer = computer;
        }

        public int getMath() {
            return math;
        }

        public void setMath(int math) {
            this.math = math;
        }

        public int getEnglish() {
            return english;
        }

        public void setEnglish(int english) {
            this.english = english;
        }
}
